﻿<p>
    This example shows how to configure Telerik TreeView for ASP.NET MVC to use sprites.
</p>
<p>
    Use <strong>SpriteCssClasses</strong> method to set the css class name. The treeview will render a &lt;span&gt; tag with the provided css classes
    before the item's text:
</p>
<pre class="prettyprint">
&lt;%= Html.Telerik().TreeView()
        .Name("TreeView")
        .Items(items => 
        {
            items.Add()
                 .Text("Telerik Extensions for ASP.NET MVC")
                 .<strong>SpriteCssClasses("icon-mvc")</strong>
                 .Items(parent =>
                 {
                     parent.Add().Text("Grid")
                           .<strong>SpriteCssClasses("icon-mvc-grid")</strong>;
                 ...
                 }
        ...
        });
%&gt;
</pre>